<?
class wwDB extends myDB {

	public function get_some(){
		return $this->dbTable('SELECT ...');
	}


	function __construct($dbname='db_name'){ 
		if ($_SERVER['HTTP_HOST']=='localhost' || strpos($_SERVER['HTTP_HOST'],'192.168.1')!==false || strpos($_SERVER['HTTP_HOST'],'pc1')!==false) parent::__construct($dbname);	//localhost || lan
		else parent::__construct('dbname', 'localhost', 'root', 'pass'); 
	}
}
?>